-- GENERATED SPELL FOR [Gelkis Windchaser] --


function spell0_4649(pUnit, Event) --@Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(959,pUnit)
pUnit:RegisterEvent('Sorts_4649', 3000, 1)
end

function spell1_4649(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4649', 3000, 1)
end

function Sorts_4649(pUnit, Event)
local choix_sorts_4649 = math.random(0, 1)
if choix_sorts_4649 == 0 then
pUnit:RegisterEvent('spell0_4649', 1, 1)
end
if choix_sorts_4649 == 1 then
pUnit:RegisterEvent('spell1_4649', 1, 1)
end
end

function mob4649_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4649', math.random(1500, 3000), 1)
end

function mob4649_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4649_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4649_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4649, 1, 'mob4649_Action')
RegisterUnitEvent(4649, 2, 'mob4649_Leave')
RegisterUnitEvent(4649, 3, 'mob4649_Kill')
RegisterUnitEvent(4649, 4, 'mob4649_Die')
